<template>
  <div>
    <div class="markdown-body" v-html="content"></div>
  </div>
</template>

<script>
import "github-markdown-css";
export default {
  props: ["content"],
};
</script>

<style>
.markdown-body {
  padding: 20px;
  font-size: 12px;
}
.markdown-body::after {
  display: table;
  clear: none;
  content: "";
}
.markdown-body h2 {
  font-size: 18px;
  margin: 1em 0 15px;
  padding-top: 0.8em;
  padding-bottom: 0.8em;
}
.markdown-body h3 {
  font-size: 14px;
  margin: 22px 0 16px;
}
.markdown-body h4 {
  font-size: 13px;
  margin: 20px 0 16px;
}
.markdown-body h5 {
  font-size: 12px;
  margin: 16px 0 16px;
  font-weight: 700;
}
.markdown-body p {
  font-size: 16px;
  line-height: 24px;
  color: #666666;
  margin-top: 0px;
  margin: 8px 0;
  margin: 14px 0 14px;
}
.markdown-body pre {
  background-color: #eee;
  margin-bottom: 8px;
  margin-top: 8px;
  margin: 12px 0 12px;
}
.markdown-body blockquote {
  margin-bottom: 8px;
  margin-top: 8px;
  margin: 14px 0 14px;
  background-color: #eee;
  padding: 16px 16px;
}
.markdown-body tr {
  background-color: #f5f5f5;
}
.markdown-body code {
  background-color: #eee;
}
.markdown-body ul,
.markdown-body ol,
.markdown-body li {
  list-style: unset;
  font-size: 14px;
  line-height: 20px;
  color: #666666;
  margin-top: 0px;
  margin: 8px 0;
}
.markdown-body blockquote {
  border-color: #48b6e2;
}
.markdown-body table {
  display: table;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}
</style>